<form id="${id}" class="eova-form" >
<%
		// 获取分组元字段数据
		var fields = query("form_field", code);

		for(f in fields){
		
			// 获取当前字段的值
			var value = @data.get(f.en);
			var flag = (f.type == '单选框' || f.type == '文本域' || f.type == '编辑框' || f.type == '图片框' || f.type == '多图框' || f.type == '附件框' || f.type == 'JSON');
%>
			<div class="eova-form-field" style="${flag ? 'display: block;' : ''}">
				<label class="eova-form-label">${f.cn}</label>
<%
				if(f.type == '下拉框'){
%>
					<#combo id="${f.en}" name="${f.en}" exp="${f.exp}" value="${value!}" isReadonly="true" />
					<%if(!isEmpty(f.items_json!)){ %>
					<script>
					$(function(){
						var $type = $('#${f.en}').eovacombo({
							json : ${f.items_json}
						}).reload();
					})
					</script>
					<%} %>
<%
				} else if(f.type == '查找框'){
%>
					<#find id="${f.en}" name="${f.en}" exp="${f.exp}" value="${value!}" isReadonly="true" />
<%
				} else if(f.type == "多图框"){
%>
					<#imgs id="${f.en}" name="${f.en}" code="EOVA_FLOW_WIDGET,${f.widget_id}" value="${value!}" filedir="${f.config.filedir!}" imgWidth="${f.config.width!}" imgHeight="${f.config.height! }"  isReadonly="true"/>
<%
				} else if(f.type == "附件框"){
%>
					<#files id="${f.en}" name="${f.en}" code="EOVA_FLOW_WIDGET,${f.widget_id}" value="${value!}" filedir="${f.config.filedir!}" isReadonly="true"/>
<%
				} else {
%>
					<#field item="${f}" value="${value!}" readnoly="true" />
<% 
				}				
%>
			</div>
<%
		}
%>
</form>